package org.example.MedicalCrowdsourcing.repository;

import org.example.MedicalCrowdsourcing.model.entity.BlockchainProject;
import org.example.MedicalCrowdsourcing.model.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;
import java.util.Optional;

@Repository
public interface BlockchainProjectRepository extends JpaRepository<BlockchainProject, Long> {
    Optional<BlockchainProject> findByBlockchainId(BigInteger blockchainId);
    List<BlockchainProject> findByCreator(User creator);
    List<BlockchainProject> findByStatus(Integer status);
    Optional<BlockchainProject> findByBlockchainHash(String blockchainHash);
} 